<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<link href="css/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery-1.6.2.min.js"></script>
<script src="js/jquery-ui-1.8.16.js"></script>
<script src="js/sabrina.js"></script>

<html>
	<head>
	<title><tiles:insertAttribute name="title" /></title>
		<script>
			function ok() {
				document.getElementById("addform").submit();
				
				//parent.$('div[id^="dialog"]').dialog( "close" );
			}
			function cancel() {
				window.close();
				parent.$('div[id^="dialog"]').dialog( "close" );
			}
		</script>
		<link rel="stylesheet" href="css/default.css" type="text/css" />
	</head>
	<body topmargin="0" leftmargin="0" bgcolor="white">
		<form id="addform" action="<tiles:insertAttribute name="action" />" method="post">
		
			<table width="100%" border="0" align="center">
				<tr>
					<td valign="top" height="30px">
						<tiles:insertAttribute name="title" />
					</td>
				</tr>
				<tr>
					<td valign="top"  style="border: 1px green solid;">
						<div style="overflow: auto;min-height: 320px;max-height:700px;width: 100%;">
							<tiles:insertAttribute name="body" />
						</div>
					</td>
				</tr>
				<tr>
					<td align="right"><input type="button" onclick="ok();" value="   Ok   " /> <INPUT type="button" value=" Cancel " onclick="cancel()"></td>
				</tr>
			</table>
		
		</form>
	</body>
</html>